<?php


abstract class BaseVwTwoJeuno extends BaseObject  implements Persistent {


	
	protected static $peer;


	
	protected $id;


	
	protected $member_id;


	
	protected $batallia = '';


	
	protected $batallia_s = '';


	
	protected $rolanberry = '';


	
	protected $rolanberry_s = '';


	
	protected $sauromugue = '';


	
	protected $sauromugue_s = '';


	
	protected $eldieme = '';


	
	protected $eldieme_s = '';


	
	protected $crawlnest = '';


	
	protected $crawlnest_s = '';


	
	protected $garlaige = '';


	
	protected $garlaige_s = '';


	
	protected $qufim = '';


	
	protected $lowdelkfut = '';


	
	protected $behemotdom = '';

	
	protected $alreadyInSave = false;

	
	protected $alreadyInValidation = false;

	
	public function getId()
	{

		return $this->id;
	}

	
	public function getMemberId()
	{

		return $this->member_id;
	}

	
	public function getBatallia()
	{

		return $this->batallia;
	}

	
	public function getBatalliaS()
	{

		return $this->batallia_s;
	}

	
	public function getRolanberry()
	{

		return $this->rolanberry;
	}

	
	public function getRolanberryS()
	{

		return $this->rolanberry_s;
	}

	
	public function getSauromugue()
	{

		return $this->sauromugue;
	}

	
	public function getSauromugueS()
	{

		return $this->sauromugue_s;
	}

	
	public function getEldieme()
	{

		return $this->eldieme;
	}

	
	public function getEldiemeS()
	{

		return $this->eldieme_s;
	}

	
	public function getCrawlnest()
	{

		return $this->crawlnest;
	}

	
	public function getCrawlnestS()
	{

		return $this->crawlnest_s;
	}

	
	public function getGarlaige()
	{

		return $this->garlaige;
	}

	
	public function getGarlaigeS()
	{

		return $this->garlaige_s;
	}

	
	public function getQufim()
	{

		return $this->qufim;
	}

	
	public function getLowdelkfut()
	{

		return $this->lowdelkfut;
	}

	
	public function getBehemotdom()
	{

		return $this->behemotdom;
	}

	
	public function setId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->id !== $v) {
			$this->id = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::ID;
		}

	} 
	
	public function setMemberId($v)
	{

		
		
		if ($v !== null && !is_int($v) && is_numeric($v)) {
			$v = (int) $v;
		}

		if ($this->member_id !== $v) {
			$this->member_id = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::MEMBER_ID;
		}

	} 
	
	public function setBatallia($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->batallia !== $v || $v === '') {
			$this->batallia = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::BATALLIA;
		}

	} 
	
	public function setBatalliaS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->batallia_s !== $v || $v === '') {
			$this->batallia_s = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::BATALLIA_S;
		}

	} 
	
	public function setRolanberry($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->rolanberry !== $v || $v === '') {
			$this->rolanberry = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::ROLANBERRY;
		}

	} 
	
	public function setRolanberryS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->rolanberry_s !== $v || $v === '') {
			$this->rolanberry_s = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::ROLANBERRY_S;
		}

	} 
	
	public function setSauromugue($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->sauromugue !== $v || $v === '') {
			$this->sauromugue = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::SAUROMUGUE;
		}

	} 
	
	public function setSauromugueS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->sauromugue_s !== $v || $v === '') {
			$this->sauromugue_s = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::SAUROMUGUE_S;
		}

	} 
	
	public function setEldieme($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->eldieme !== $v || $v === '') {
			$this->eldieme = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::ELDIEME;
		}

	} 
	
	public function setEldiemeS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->eldieme_s !== $v || $v === '') {
			$this->eldieme_s = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::ELDIEME_S;
		}

	} 
	
	public function setCrawlnest($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->crawlnest !== $v || $v === '') {
			$this->crawlnest = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::CRAWLNEST;
		}

	} 
	
	public function setCrawlnestS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->crawlnest_s !== $v || $v === '') {
			$this->crawlnest_s = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::CRAWLNEST_S;
		}

	} 
	
	public function setGarlaige($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->garlaige !== $v || $v === '') {
			$this->garlaige = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::GARLAIGE;
		}

	} 
	
	public function setGarlaigeS($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->garlaige_s !== $v || $v === '') {
			$this->garlaige_s = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::GARLAIGE_S;
		}

	} 
	
	public function setQufim($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->qufim !== $v || $v === '') {
			$this->qufim = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::QUFIM;
		}

	} 
	
	public function setLowdelkfut($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->lowdelkfut !== $v || $v === '') {
			$this->lowdelkfut = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::LOWDELKFUT;
		}

	} 
	
	public function setBehemotdom($v)
	{

		
		
		if ($v !== null && !is_string($v)) {
			$v = (string) $v; 
		}

		if ($this->behemotdom !== $v || $v === '') {
			$this->behemotdom = $v;
			$this->modifiedColumns[] = VwTwoJeunoPeer::BEHEMOTDOM;
		}

	} 
	
	public function hydrate(ResultSet $rs, $startcol = 1)
	{
		try {

			$this->id = $rs->getInt($startcol + 0);

			$this->member_id = $rs->getInt($startcol + 1);

			$this->batallia = $rs->getString($startcol + 2);

			$this->batallia_s = $rs->getString($startcol + 3);

			$this->rolanberry = $rs->getString($startcol + 4);

			$this->rolanberry_s = $rs->getString($startcol + 5);

			$this->sauromugue = $rs->getString($startcol + 6);

			$this->sauromugue_s = $rs->getString($startcol + 7);

			$this->eldieme = $rs->getString($startcol + 8);

			$this->eldieme_s = $rs->getString($startcol + 9);

			$this->crawlnest = $rs->getString($startcol + 10);

			$this->crawlnest_s = $rs->getString($startcol + 11);

			$this->garlaige = $rs->getString($startcol + 12);

			$this->garlaige_s = $rs->getString($startcol + 13);

			$this->qufim = $rs->getString($startcol + 14);

			$this->lowdelkfut = $rs->getString($startcol + 15);

			$this->behemotdom = $rs->getString($startcol + 16);

			$this->resetModified();

			$this->setNew(false);

						return $startcol + 17; 
		} catch (Exception $e) {
			throw new PropelException("Error populating VwTwoJeuno object", $e);
		}
	}

	
	public function delete($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("This object has already been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(VwTwoJeunoPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			VwTwoJeunoPeer::doDelete($this, $con);
			$this->setDeleted(true);
			$con->commit();
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	public function save($con = null)
	{
		if ($this->isDeleted()) {
			throw new PropelException("You cannot save an object that has been deleted.");
		}

		if ($con === null) {
			$con = Propel::getConnection(VwTwoJeunoPeer::DATABASE_NAME);
		}

		try {
			$con->begin();
			$affectedRows = $this->doSave($con);
			$con->commit();
			return $affectedRows;
		} catch (PropelException $e) {
			$con->rollback();
			throw $e;
		}
	}

	
	protected function doSave($con)
	{
		$affectedRows = 0; 		if (!$this->alreadyInSave) {
			$this->alreadyInSave = true;


						if ($this->isModified()) {
				if ($this->isNew()) {
					$pk = VwTwoJeunoPeer::doInsert($this, $con);
					$affectedRows += 1; 										 										 
					$this->setId($pk);  
					$this->setNew(false);
				} else {
					$affectedRows += VwTwoJeunoPeer::doUpdate($this, $con);
				}
				$this->resetModified(); 			}

			$this->alreadyInSave = false;
		}
		return $affectedRows;
	} 
	
	protected $validationFailures = array();

	
	public function getValidationFailures()
	{
		return $this->validationFailures;
	}

	
	public function validate($columns = null)
	{
		$res = $this->doValidate($columns);
		if ($res === true) {
			$this->validationFailures = array();
			return true;
		} else {
			$this->validationFailures = $res;
			return false;
		}
	}

	
	protected function doValidate($columns = null)
	{
		if (!$this->alreadyInValidation) {
			$this->alreadyInValidation = true;
			$retval = null;

			$failureMap = array();


			if (($retval = VwTwoJeunoPeer::doValidate($this, $columns)) !== true) {
				$failureMap = array_merge($failureMap, $retval);
			}



			$this->alreadyInValidation = false;
		}

		return (!empty($failureMap) ? $failureMap : true);
	}

	
	public function getByName($name, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = VwTwoJeunoPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->getByPosition($pos);
	}

	
	public function getByPosition($pos)
	{
		switch($pos) {
			case 0:
				return $this->getId();
				break;
			case 1:
				return $this->getMemberId();
				break;
			case 2:
				return $this->getBatallia();
				break;
			case 3:
				return $this->getBatalliaS();
				break;
			case 4:
				return $this->getRolanberry();
				break;
			case 5:
				return $this->getRolanberryS();
				break;
			case 6:
				return $this->getSauromugue();
				break;
			case 7:
				return $this->getSauromugueS();
				break;
			case 8:
				return $this->getEldieme();
				break;
			case 9:
				return $this->getEldiemeS();
				break;
			case 10:
				return $this->getCrawlnest();
				break;
			case 11:
				return $this->getCrawlnestS();
				break;
			case 12:
				return $this->getGarlaige();
				break;
			case 13:
				return $this->getGarlaigeS();
				break;
			case 14:
				return $this->getQufim();
				break;
			case 15:
				return $this->getLowdelkfut();
				break;
			case 16:
				return $this->getBehemotdom();
				break;
			default:
				return null;
				break;
		} 	}

	
	public function toArray($keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = VwTwoJeunoPeer::getFieldNames($keyType);
		$result = array(
			$keys[0] => $this->getId(),
			$keys[1] => $this->getMemberId(),
			$keys[2] => $this->getBatallia(),
			$keys[3] => $this->getBatalliaS(),
			$keys[4] => $this->getRolanberry(),
			$keys[5] => $this->getRolanberryS(),
			$keys[6] => $this->getSauromugue(),
			$keys[7] => $this->getSauromugueS(),
			$keys[8] => $this->getEldieme(),
			$keys[9] => $this->getEldiemeS(),
			$keys[10] => $this->getCrawlnest(),
			$keys[11] => $this->getCrawlnestS(),
			$keys[12] => $this->getGarlaige(),
			$keys[13] => $this->getGarlaigeS(),
			$keys[14] => $this->getQufim(),
			$keys[15] => $this->getLowdelkfut(),
			$keys[16] => $this->getBehemotdom(),
		);
		return $result;
	}

	
	public function setByName($name, $value, $type = BasePeer::TYPE_PHPNAME)
	{
		$pos = VwTwoJeunoPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);
		return $this->setByPosition($pos, $value);
	}

	
	public function setByPosition($pos, $value)
	{
		switch($pos) {
			case 0:
				$this->setId($value);
				break;
			case 1:
				$this->setMemberId($value);
				break;
			case 2:
				$this->setBatallia($value);
				break;
			case 3:
				$this->setBatalliaS($value);
				break;
			case 4:
				$this->setRolanberry($value);
				break;
			case 5:
				$this->setRolanberryS($value);
				break;
			case 6:
				$this->setSauromugue($value);
				break;
			case 7:
				$this->setSauromugueS($value);
				break;
			case 8:
				$this->setEldieme($value);
				break;
			case 9:
				$this->setEldiemeS($value);
				break;
			case 10:
				$this->setCrawlnest($value);
				break;
			case 11:
				$this->setCrawlnestS($value);
				break;
			case 12:
				$this->setGarlaige($value);
				break;
			case 13:
				$this->setGarlaigeS($value);
				break;
			case 14:
				$this->setQufim($value);
				break;
			case 15:
				$this->setLowdelkfut($value);
				break;
			case 16:
				$this->setBehemotdom($value);
				break;
		} 	}

	
	public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
	{
		$keys = VwTwoJeunoPeer::getFieldNames($keyType);

		if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
		if (array_key_exists($keys[1], $arr)) $this->setMemberId($arr[$keys[1]]);
		if (array_key_exists($keys[2], $arr)) $this->setBatallia($arr[$keys[2]]);
		if (array_key_exists($keys[3], $arr)) $this->setBatalliaS($arr[$keys[3]]);
		if (array_key_exists($keys[4], $arr)) $this->setRolanberry($arr[$keys[4]]);
		if (array_key_exists($keys[5], $arr)) $this->setRolanberryS($arr[$keys[5]]);
		if (array_key_exists($keys[6], $arr)) $this->setSauromugue($arr[$keys[6]]);
		if (array_key_exists($keys[7], $arr)) $this->setSauromugueS($arr[$keys[7]]);
		if (array_key_exists($keys[8], $arr)) $this->setEldieme($arr[$keys[8]]);
		if (array_key_exists($keys[9], $arr)) $this->setEldiemeS($arr[$keys[9]]);
		if (array_key_exists($keys[10], $arr)) $this->setCrawlnest($arr[$keys[10]]);
		if (array_key_exists($keys[11], $arr)) $this->setCrawlnestS($arr[$keys[11]]);
		if (array_key_exists($keys[12], $arr)) $this->setGarlaige($arr[$keys[12]]);
		if (array_key_exists($keys[13], $arr)) $this->setGarlaigeS($arr[$keys[13]]);
		if (array_key_exists($keys[14], $arr)) $this->setQufim($arr[$keys[14]]);
		if (array_key_exists($keys[15], $arr)) $this->setLowdelkfut($arr[$keys[15]]);
		if (array_key_exists($keys[16], $arr)) $this->setBehemotdom($arr[$keys[16]]);
	}

	
	public function buildCriteria()
	{
		$criteria = new Criteria(VwTwoJeunoPeer::DATABASE_NAME);

		if ($this->isColumnModified(VwTwoJeunoPeer::ID)) $criteria->add(VwTwoJeunoPeer::ID, $this->id);
		if ($this->isColumnModified(VwTwoJeunoPeer::MEMBER_ID)) $criteria->add(VwTwoJeunoPeer::MEMBER_ID, $this->member_id);
		if ($this->isColumnModified(VwTwoJeunoPeer::BATALLIA)) $criteria->add(VwTwoJeunoPeer::BATALLIA, $this->batallia);
		if ($this->isColumnModified(VwTwoJeunoPeer::BATALLIA_S)) $criteria->add(VwTwoJeunoPeer::BATALLIA_S, $this->batallia_s);
		if ($this->isColumnModified(VwTwoJeunoPeer::ROLANBERRY)) $criteria->add(VwTwoJeunoPeer::ROLANBERRY, $this->rolanberry);
		if ($this->isColumnModified(VwTwoJeunoPeer::ROLANBERRY_S)) $criteria->add(VwTwoJeunoPeer::ROLANBERRY_S, $this->rolanberry_s);
		if ($this->isColumnModified(VwTwoJeunoPeer::SAUROMUGUE)) $criteria->add(VwTwoJeunoPeer::SAUROMUGUE, $this->sauromugue);
		if ($this->isColumnModified(VwTwoJeunoPeer::SAUROMUGUE_S)) $criteria->add(VwTwoJeunoPeer::SAUROMUGUE_S, $this->sauromugue_s);
		if ($this->isColumnModified(VwTwoJeunoPeer::ELDIEME)) $criteria->add(VwTwoJeunoPeer::ELDIEME, $this->eldieme);
		if ($this->isColumnModified(VwTwoJeunoPeer::ELDIEME_S)) $criteria->add(VwTwoJeunoPeer::ELDIEME_S, $this->eldieme_s);
		if ($this->isColumnModified(VwTwoJeunoPeer::CRAWLNEST)) $criteria->add(VwTwoJeunoPeer::CRAWLNEST, $this->crawlnest);
		if ($this->isColumnModified(VwTwoJeunoPeer::CRAWLNEST_S)) $criteria->add(VwTwoJeunoPeer::CRAWLNEST_S, $this->crawlnest_s);
		if ($this->isColumnModified(VwTwoJeunoPeer::GARLAIGE)) $criteria->add(VwTwoJeunoPeer::GARLAIGE, $this->garlaige);
		if ($this->isColumnModified(VwTwoJeunoPeer::GARLAIGE_S)) $criteria->add(VwTwoJeunoPeer::GARLAIGE_S, $this->garlaige_s);
		if ($this->isColumnModified(VwTwoJeunoPeer::QUFIM)) $criteria->add(VwTwoJeunoPeer::QUFIM, $this->qufim);
		if ($this->isColumnModified(VwTwoJeunoPeer::LOWDELKFUT)) $criteria->add(VwTwoJeunoPeer::LOWDELKFUT, $this->lowdelkfut);
		if ($this->isColumnModified(VwTwoJeunoPeer::BEHEMOTDOM)) $criteria->add(VwTwoJeunoPeer::BEHEMOTDOM, $this->behemotdom);

		return $criteria;
	}

	
	public function buildPkeyCriteria()
	{
		$criteria = new Criteria(VwTwoJeunoPeer::DATABASE_NAME);

		$criteria->add(VwTwoJeunoPeer::ID, $this->id);

		return $criteria;
	}

	
	public function getPrimaryKey()
	{
		return $this->getId();
	}

	
	public function setPrimaryKey($key)
	{
		$this->setId($key);
	}

	
	public function copyInto($copyObj, $deepCopy = false)
	{

		$copyObj->setMemberId($this->member_id);

		$copyObj->setBatallia($this->batallia);

		$copyObj->setBatalliaS($this->batallia_s);

		$copyObj->setRolanberry($this->rolanberry);

		$copyObj->setRolanberryS($this->rolanberry_s);

		$copyObj->setSauromugue($this->sauromugue);

		$copyObj->setSauromugueS($this->sauromugue_s);

		$copyObj->setEldieme($this->eldieme);

		$copyObj->setEldiemeS($this->eldieme_s);

		$copyObj->setCrawlnest($this->crawlnest);

		$copyObj->setCrawlnestS($this->crawlnest_s);

		$copyObj->setGarlaige($this->garlaige);

		$copyObj->setGarlaigeS($this->garlaige_s);

		$copyObj->setQufim($this->qufim);

		$copyObj->setLowdelkfut($this->lowdelkfut);

		$copyObj->setBehemotdom($this->behemotdom);


		$copyObj->setNew(true);

		$copyObj->setId(NULL); 
	}

	
	public function copy($deepCopy = false)
	{
				$clazz = get_class($this);
		$copyObj = new $clazz();
		$this->copyInto($copyObj, $deepCopy);
		return $copyObj;
	}

	
	public function getPeer()
	{
		if (self::$peer === null) {
			self::$peer = new VwTwoJeunoPeer();
		}
		return self::$peer;
	}

} 